//
//  CustomSegmentBar.h
//  AiTuPianPad
//
//  Created by guo hua on 11-9-20.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol CustomSegmentDelegate;
@interface CustomSegmentBar : UIView{

    NSMutableArray *buttonList;
    id<CustomSegmentDelegate> delegate;    
    UIButton *selectedButton;
    NSArray *_images;
    NSArray *_hImages;
}
@property(nonatomic,retain)NSMutableArray *buttonList;
@property(nonatomic,assign)id<CustomSegmentDelegate> delegate;
@property(nonatomic,retain)NSArray *images;
@property(nonatomic,retain)NSArray *hImages;

-(id)initWithImages:(NSArray *)images highlightedImages:(NSArray *)hImages;
-(void)selectedButtonAtIndex:(int)index;
@end

@protocol CustomSegmentDelegate <NSObject>
@required
-(void)segment:(CustomSegmentBar *)segmentbar selectedIndexChanged:(int)index;
@end

